package com.webank.wedatasphere.qualitis.project.dao.repository;

import com.webank.wedatasphere.qualitis.project.entity.ProjectMuLu;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface ProjectMuLuRepository extends JpaRepository<ProjectMuLu,Long> {
    ProjectMuLu findByName(String name);

    @Query("select p from ProjectMuLu p where p.parentId = ?1")
    List<ProjectMuLu> findThisChild(long id);
}
